applicationwindow: Fix measure implementation
authorTimm Bäder <mail@baedert.org>
Wed, 17 Jan 2018 15:02:28 +0000 (16:02 +0100)
committerTimm Bäder <mail@baedert.org>
Wed, 17 Jan 2018 20:57:20 +0000 (21:57 +0100)
Really calculate the menubar height, not the width.

gtk/gtkapplicationwindow.c

index 6ac97521bbc7e0c80a09a37a279d30ad2a0b9b2e..0d2304a4d67770a3c2d20baaba8f5b0045784476 100644 (file)
@@ -547,7 +547,8 @@ gtk_application_window_measure (GtkWidget *widget,
           GtkBorder border = {0};
           int menubar_height = 0;
 
-          gtk_widget_measure (priv->menubar, orientation, for_size, &menubar_height, NULL, NULL, NULL);
+          gtk_widget_measure (priv->menubar, GTK_ORIENTATION_VERTICAL,
+                              for_size, &menubar_height, NULL, NULL, NULL);
 
           GTK_WIDGET_CLASS (gtk_application_window_parent_class)->measure (widget,
                                                                            orientation,